#ifndef PLAYTHREAD_H
#define PLAYTHREAD_H

#include <QThread>
#include <QMutex>
#include "CaptureThread.h"

using namespace std;

class PlayThread : public QThread
{
    Q_OBJECT
public:
    explicit PlayThread(QObject *parent = 0);
    void stop();
    void setDtime(vector<int> dtimes);

protected:
    void run();
    bool running_flag;
    QMutex istheEnd;
    QTime  timer;

    vector<int> *dtimes;
    
signals:
    void show_now();

public slots:
    
};

#endif // PLAYTHREAD_H
